//package com.springbase.demo.config;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
//
///**
// * @Author: flyFan
// * @Date: 2021/9/14 15:20
// * @Version: 1.0
// */
//@Configuration
//public class MyMvcConfig extends WebMvcConfigurationSupport {
//
//	@Override
//	protected void addResourceHandlers(ResourceHandlerRegistry registry) {
//		// 排除 swagger 相关
//		if (!registry.hasMappingForPattern("swagger")){
//			// thymeleaf 由于某个配置导致不能请求页面,后排查不是此问题
//			registry.addResourceHandler("/**").addResourceLocations("classpath:/static/");
//			registry.addResourceHandler("/**").addResourceLocations("classpath:/templates/");
//		}
//	}
//}
